import express from 'express';
import componentRoutes from './component.routes.js';
import componentVersionRoutes from './componentVersion.routes.js';
import grayReleaseRoutes from './grayRelease.routes.js';
import userUpdateRoutes from './userUpdate.routes.js';
import userVisitRoutes from './userVisit.routes.js';

const router = express.Router();

// 注册各个路由模块
router.use('/api/components', componentRoutes);
router.use('/api/componentVersions', componentVersionRoutes);
router.use('/api/grayReleases', grayReleaseRoutes);
router.use('/api/userUpdates', userUpdateRoutes);
router.use('/api/userVisits', userVisitRoutes);

export default router;